import Cookies from 'js-cookie'

const TokenKey = 'token_data_web'
const PlatType = 'plattype_data_we'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getPlatType() {
  return Cookies.get(PlatType)
}

export function setPlatType(token) {
  return Cookies.set(PlatType, token)
}

export function removePlatType() {
  return Cookies.remove(PlatType)
}